var mongoose = require('mongoose')
var Schema = mongoose.Schema
var ScholarshipSchemaConfig = {
  versionKey: false
}

var ScholarshipSchema = new Schema({
  name: String,
  deadline: Date,
  applicants: [{
    user: {type: Schema.Types.ObjectId, ref: 'User'},
    status: Number
  }]
}, ScholarshipSchemaConfig)

exports = module.exports = ScholarshipSchema
